package com.jshongli.myapplication.common.utils;

import android.content.Context;

import com.jshongli.myapplication.MyApplication;


public class AccountManager {

    public static Context getApplicationContext() {
        return MyApplication.getInstance();
    }


    public static String getToken() {
        return UtilPreferences.getString(getApplicationContext(), "token", "");
    }

    public static String getUserId() {
        return UtilPreferences.getString(getApplicationContext(), "userid", "");
    }

    public static String getRealName() {
        return UtilPreferences.getString(getApplicationContext(), "realname", "");
    }

    public static String getUserName() {
        return UtilPreferences.getString(getApplicationContext(), "username", "");
    }

    public static String getPWD() {
        return UtilPreferences.getString(getApplicationContext(), "pwd", "");
    }

    public static String getPhone() {
        return UtilPreferences.getString(getApplicationContext(), "phone", "");
    }

    public static String getIsAdmin() {
        return UtilPreferences.getString(getApplicationContext(), "isadmin", "");
    }

    public static String getIsQY() {
        return UtilPreferences.getString(getApplicationContext(), "isqy", "");
    }

    public static boolean getisRemember() {
        return UtilPreferences.getBoolean(getApplicationContext(), "isRemember", false);
    }

}
